<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script>
</head>
<body>
<h3>ng-init:给username一个初始化值,也可以初始化调用</h3>
    <div ng-app ng-init="username='张三'">
        用户名:<input ng-model="username" /><br>
        用户名:{{username}}
    </div>
</body>
</html>